﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using CustomConverters;

namespace MappingTest.Sources
{


    [ValueConversion(typeof(int), typeof(long))]
    public class Converter2 : IValueConverter
    {

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return (long)value;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return (int)value;
        }

    }


    public class Converter4 : IConverter<int, long>
    {

        public long Convert(int value, object parameter, System.Globalization.CultureInfo culture)
        {
            return (long)value;
        }

        public int ConvertBack(long value, object parameter, System.Globalization.CultureInfo culture)
        {
            return (int)value;
        }

    }


}
